package cn.easyar.samples.helloarqrcode.adpter;


import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import cn.easyar.samples.helloarqrcode.R;
import cn.easyar.samples.helloarqrcode.bean.UserStatusBean;

/**
 * 选择专家
 * Created by sy on 2018/9/7.
 */

public class SelectListAdapter extends BaseQuickAdapter<UserStatusBean,SelectListAdapter.ViewHolder> {

    public SelectListAdapter(@Nullable List<UserStatusBean> data) {
        super(R.layout.item_select_list, data);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    protected void convert(ViewHolder helper, UserStatusBean item) {
        helper.tv_name.setText(item.name);
    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_name)
        TextView tv_name;

        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }
}
